﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using UCOLOR.Helpers;
using UCOLOR.Model;

namespace UCOLOR.View
{
    /// <summary>
    /// HomeView.xaml 的交互逻辑
    /// </summary>
    public partial class HomeDetaiView : ModuleView
    {
        public HomeDetaiView()
        {
           // data = DataHelper.getCategorys().Where(p => p.ID == 2).ToList();
            part_data = DataHelper.GetPartProductCode();
            InitializeComponent();
        }

        public void ShowDir(string Category)
        {
          //  (((DevExpress.Xpf.Core.DXWindow)(this.DataContext as MainWindow)).Content as DirView).ShowView(Category);
        }

        private void Tile_Click(object sender, EventArgs e)
        {
            ShowDir(((DevExpress.Xpf.LayoutControl.Tile)sender).Uid);
        }

        public IList<ProductCategory> data
        {
            get;
            set;
        }


        public IList<PartProductCode> part_data
        {
            get;
            set;
        }

 }
}
